/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-03-31
 * Time:21:54
 */
public class Demo {
    public static void main(String[] args) {
        Room room1=new Room();
        Room room2=new Room();
        Room room3=new Room();
        room1.setArea(113.5);
        room2.setArea(156.9);
        room3.setArea(45.9);
        room1.setPrice(15000);
        room2.setPrice(17500);
        room3.setPrice(16200);
        room1.setState(true);
        room2.setState(true);
        room3.setState(true);
        room1.setId("3-2-502");
        room2.setId("4-5-1108");
        room3.setId("4-3-1501");
        room1.setType("三室一厅");
        room2.setType("四室二厅");
        room3.setType("二室一厅");

        double area = room1.getArea() + room2.getArea() + room3.getArea();
        double money = room1.getMoney() + room2.getMoney() + room3.getMoney();

        System.out.println("总面积："+area);
        System.out.println("总价："+money);
        room1.showRoom();
        room2.showRoom();
        room3.showRoom();

    }
}
